package com.shop.shoporder.mapper;


import com.shop.shoporder.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface WapGoodsAndSpecMapper {




    //根据名称查询商品
    List<SearchGoods> selectGoodsAndSpaceByGoodsName(String goodsName);

    //根据商品ID查询商品的详情
    List<WapGoodsSpec> selectGoodsAndSpaceById(int Id);

    //根据商品Id查询首页数据
    List<IndexGoodsData> selectIndexGoodsByzoneId(int zoneId);

    List<IndexGoodsRankData> selectIndexGoodsByzoneIdAndRankId(int zoneId);

    List<IndexGoodsHYToData> selectIndexGoodsByzoneIAndHY(int zoneId);

    List<IndexGoodsDZToData> selectIndexGoodsByZoneIdAndDZ1(int zoneId);

    List<IndexGoodsDZToData> selectIndexGoodsByZoneIdAndDZ2(int zoneId)throws Exception;

    List<IndexGoodsDZToData> selectIndexGoodsByZoneIdAndDZ3(int zoneId)throws Exception;

    List<IndexGoodsDZToData> selectIndexGoodsByZoneIdAndDZ4(int zoneId)throws Exception;

    List<Goods> selectList();

    //根据专区ID获取首页商品数据
    List<IndexGoods> getIndexGoods(int zoneId);

    //根据专区ID获取首页商品数据
    List<IndexGoods> getIndexGoods11();

    //根据专区ID获取首页商品数据
    List<IndexGoods> getIndexGoodsAttr();

    //根据专区ID获取首页商品数据
    List<IndexGoods> getIndexGoodsShop();

}
